package com.un.ebs.core.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

@Getter
public enum ConfigureValueTypeEnum implements IEnum {

    String(1, "字符串"),
    Date(2, "日期(yyyy-MM-dd)"),
    DateTime(3, "日期时间(yyyy-MM-dd HH:mm)"),
    Integer(4, "整数"),
    Decimal(5, "带小数数值"),
    Dictionary(9, "字典类型");

    ConfigureValueTypeEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @EnumValue
    private final int value;

    private final String desc;

    @Override
    public int getCode() {
        return value;
    }
}
